package design.factory.factoryMethod;

public class HandGunFactory implements GunFactory {
    @Override
    public Gun getGun() {
        return new HandGun();
    }
    private HandGunFactory() {}
    private static class SingleHold{
        private static HandGunFactory hf = new HandGunFactory();
    }
    public static HandGunFactory getFactory() {
        return SingleHold.hf;
    }
}
